package com.jvm123.cassandra.dao;

        import com.jvm123.cassandra.entity.User;
        import org.springframework.data.jpa.repository.JpaRepository;

        import java.util.List;

/**
 * @author yawn
 * 2019/9/11 17:15
 */
public interface UserQueryDao /*extends JpaRepository<User, Integer>*/ {

    User getOne(int id);
    User getById(int id);

    User findFirstByAge(int age);

    List<User> findUserByBooksContains(String book);

    List<User> findByAgeAndName(int age, String name);

    List<User> deleteByIdBetween(int id1, int id2);
}
